From 983c90cd054076ec50d71b0c5e8aeb844ed8779e Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 25 Feb 2003 19:04:45 +0000 Subject: [PATCH] Fix tests for polarity of coords on output. --- gpsbabel/magproto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 5bc44b054..ab038c2c8 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -1102,8 +1102,8 @@ mag_waypt_pr(const waypoint *waypointp) } sprintf(obuf, "PMGNWPL,%4.3f,%c,%09.3f,%c,%07.lf,M,%-.8s,%-.30s,%s", - lat, ilon < 0 ? 'N' : 'S', - lon, ilat < 0 ? 'E' : 'W', + lat, ilat < 0 ? 'S' : 'N', + lon, ilon < 0 ? 'W' : 'E', waypointp->position.altitude.altitude_meters == unknown_alt ? 0 : waypointp->position.altitude.altitude_meters, owpt, -- 2.30.2